package com.coolgor.coldot.entity.auth;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 本地用户实体类
 * 
 * @author CoolGor
 *
 */
public class LocalUser implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1125542447857289752L;

	// 本地系统中用户的唯一标示UserID,数据库中自动增长
	@JsonProperty("user_id")
	private Long userID;		
	// 用户名，唯一标示
	@JsonProperty("username")
	private String username;		
	// 密码
	@JsonProperty("password")
	private String password;	
	// 用户中文名称
	@JsonProperty("name_cn")
	private String nameCN;	
	// 用户账号状态: 1=未注册，2=未激活，3=正常，4=已禁用。
	@JsonProperty("status")
	private Integer status;
	// 用户创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@JsonProperty("create_time")
	private Date createTime;	
	// 最后编辑时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@JsonProperty("last_edit_time")
	private Date lastEditTime;	
	// 身份证件类型  1=中国居民身份证，2=中国居民户口本，3=港澳通行证，4=台湾回乡证，5=护照
	@JsonProperty("citizen_card")
	private Long citizenCard;
	// 身份证件编号
	@JsonProperty("citizen_id")
	private String citizenId;	
	// 性别，0=女性，1=男性，2=变性
	@JsonProperty("gender")
	private Integer gender;
	// 最后编辑时间
	@JsonProperty("birthday")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date birthday;	
	// 地址
	@JsonProperty("address")
	private String address;	
	// 手机号码
	@JsonProperty("mobilephone")
	private String mobilephone;	
	// 固定电话号码
	@JsonProperty("telephone")
	private String telephone;	
	// 电子邮箱地址
	@JsonProperty("email")
	private String email;	
	// 微信号、微信企业号的userid、微信公众号的openid
	@JsonProperty("wechat")
	private String wechat;	
	// QQ号码
	@JsonProperty("qq")
	private String QQ;	
	// 个性化首页
	@JsonProperty("homepage")
	private String homepage;	
	// 备注说明
	@JsonProperty("remark")
	private String remark;
	
	
	public Long getUserID() {
		return userID;
	}
	public void setUserId(Long userId) {
		this.userID = userId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNameCN() {
		return nameCN;
	}
	public void setNameCN(String nameCN) {
		this.nameCN = nameCN;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastEditTime() {
		return lastEditTime;
	}
	public void setLastEditTime(Date lastEditTime) {
		this.lastEditTime = lastEditTime;
	}
	public Long getCitizenCard() {
		return citizenCard;
	}
	public void setCitizenCard(Long citizenCard) {
		this.citizenCard = citizenCard;
	}
	public String getCitizenId() {
		return citizenId;
	}
	public void setCitizenId(String citizenId) {
		this.citizenId = citizenId;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getMobilephone() {
		return mobilephone;
	}
	public void setMobilephone(String mobilephone) {
		this.mobilephone = mobilephone;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getWechat() {
		return wechat;
	}
	public void setWechat(String wechat) {
		this.wechat = wechat;
	}
	public String getQQ() {
		return QQ;
	}
	public void setQQ(String qQ) {
		QQ = qQ;
	}
	public String getHomepage() {
		return homepage;
	}
	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	@Override
	public String toString() {
		return "LocalUser [userID=" + userID + ", username=" + username + ", password=" + password + ", nameCN="
				+ nameCN + ", status=" + status + ", createTime=" + createTime + ", lastEditTime=" + lastEditTime
				+ ", citizenCard=" + citizenCard + ", citizenId=" + citizenId + ", gender=" + gender + ", birthday="
				+ birthday + ", address=" + address + ", mobilephone=" + mobilephone + ", telephone=" + telephone
				+ ", email=" + email + ", wechat=" + wechat + ", QQ=" + QQ + ", homepage=" + homepage + ", remark="
				+ remark + "]";
	}	
	
}
